Alibabacloud.com offers a wide variety of articles about how to optimize table in mysql, easily find your how to optimize table in mysql information here online.
Syntax structure:[no_write_to_binlog | LOCAL] TABLE[, Tbl_name] ...Optimize table reorganizes the physical storage of tables data and indexes, reducing the IO efficiency when using storage space and improving access to tables. Optimize table
Periodic analysis Table
ANALYZE [Local | No_write_to_binlog] TABLE tbl_name [, Tbl_name]
Use this statement to parse and store the keyword distribution for a table. During profiling, a table is locked with a read lock. This is useful for MyISAM,
OPTIMIZE TABLE is used to reclaim unused database space.
When rows of data on a table are deleted, the disk space occupied is not immediately reclaimed, the space is reclaimed after the Optimize table command is used, and the rows of data on the
Take a look at the description of OPTIMIZE in the manual:OPTIMIZE [LOCAL | No_write_to_binlog] TABLE tbl_name [, Tbl_name] ...If you have deleted a large part of the table, or if you have made many changes to a table with variable-length rows (a
After a large amount of data is deleted from your database, you may find that the size of the data file is not reduced. This is because fragments are left in the data file after the delete operation. Discuz! The data table optimization function is
the use of MySQL data files is only extended and not recycled. After you perform a delete on a table, the data files on the disk do not shrink. the usual practice is to logically export and then truncate the original table (or delete the Rebuild)
After a large amount of data is deleted from your database, you may find that the size of the data file is not reduced. This is because fragments are left in the data file after the delete operation. Discuz! The data table optimization function is
In order to better optimize MySQL in high concurrency, it is necessary to understand the locking table mechanism when MySQL query is updated.I. OverviewMySQL has three levels of Lock: page level, table level, row level.MyISAM and MemoryStorageThe
The following articles mainly describe three useful solutions for optimizing MySQL database queries, including how to correctly use related indexes and how to optimize query performance, the following describes how to optimize the query performance.
Using mysql table partitions to optimize tables with large data volumes according to the actual situation of the company database, order tables may expand faster than expected. Here, you may need to prepare an optimization solution in advance, the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.